package com.ht.sps.bui.model;

import java.util.List;

/**
 * BUI简单树节点模型，采用PID, 可参考BUI手册
 *
 * @author: 薄成文 13-10-24 下午1:58
 * To change this template use File | Settings | File Templates.
 */
public class SimpleTreeNode {
    private String pid = "0";
    private String id;
    private String text;
    private boolean leaf = false;
    private boolean disabled = false;

    private List<SimpleTreeNode> children;

    public SimpleTreeNode(String pid, String id, String text, boolean leaf) {
        this.pid = pid;
        this.id = id;
        this.text = text;
        this.leaf = leaf;
    }

    public SimpleTreeNode(String pid, String id, String text) {
        this.pid = pid;
        this.id = id;
        this.text = text;
    }

    public SimpleTreeNode(String id, String text) {
        this.id = id;
        this.text = text;
    }

    public List<SimpleTreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<SimpleTreeNode> children) {
        this.children = children;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public boolean isLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }
}
